package cn.edu.guet.bean.shopping;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
@Component
public class Shopping {
    private String username;
    private int bid;
    private String bpath;
    private String bname;
    private int bprice;
    private int userid;
    private int totalgrade;

    public Shopping() {
    }

    public Shopping(String username, int bid, String bpath, String bname, int bprice, int userid, int totalgrade) {
        this.username = username;
        this.bid = bid;
        this.bpath = bpath;
        this.bname = bname;
        this.bprice = bprice;
        this.userid = userid;
        this.totalgrade = totalgrade;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public String getBpath() {
        return bpath;
    }

    public void setBpath(String bpath) {
        this.bpath = bpath;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public int getBprice() {
        return bprice;
    }

    public void setBprice(int bprice) {
        this.bprice = bprice;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public int getTotalgrade() {
        return totalgrade;
    }

    public void setTotalgrade(int totalgrade) {
        this.totalgrade = totalgrade;
    }
}
